<%@page import="com.conversationboard.config.*" %>
<%@page import="com.conversationboard.model.StyleSheets"%>

<%@page pageEncoding="UTF-8"%>
<%@page contentType="text/html;charset=UTF-8"%>

<%@page import="com.conversationboard.controller.confirm.Confirm"%>
<%@page import="com.conversationboard.view.MainMenu"%>

<%@page import="com.conversationboard.site.Site"%>
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>Open or Close Site</title>
		<link rel="stylesheet"title="Conversation Board" type="text/css" href="<%=Configuration.getInstance().getRoot()%>/Stylesheets/<%=StyleSheets.getStyleSheetFileName(request.getCookies())%>">
	</head>

	<body>
	
		<%= MainMenu.display(request.getUserPrincipal()) %>
	
		<div class="headingblock">
			<h1>Open or Close Site</h1>
		</div>

		<div class="mainblock">

			<form class="formsection" action="<%=Configuration.getInstance().getRoot()%>/Admin/AdminOpenCloseControllerServlet" method="post">

			 	<%= Confirm.getKey(request.getUserPrincipal().getName()) %>

				<p>You can open or close the site to visitors by clicking the button.</p>
				
				<p>
				
				<% if (Site.isShut()) { %>
					<input type="submit" value="    Open Site    " />
				<% } else { %>
					<input type="submit" value="    Close Site    " />
				<% } %>
				
				</p>
		
			</form>

		
		</div>	

		<!--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>-->
		<!--<script type="text/javascript">_uacct = "UA-1148679-1";urchinTracker();</script>--> 
		
	</body>
	
</html>
